package cn.tdeu.spring.di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestUserDao {
    public static void main(String[] args) {
        ApplicationContext context =
                new AnnotationConfigApplicationContext
                        ("cn.tdeu.spring");

        //UserDao bean = context.getBean(UserDao.class);
        UserService bean = context.getBean(UserService.class);
        System.out.println(bean);
    }
}
